NAMESPACE?=loki
EXPOSE_PORT?=3000

install:
	helm upgrade --install -f values.yaml loki ./charts/loki-stack \
		--set grafana.enabled=true -n $(NAMESPACE)

grafana:
	kubectl port-forward --namespace ${NAMESPACE} service/loki-grafana ${EXPOSE_PORT}:80

grafana_secret:
	kubectl get secret --namespace ${NAMESPACE} loki-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo